package chap3_10;

public class Exer3_10_3 {
    public static void main(String[] args) {
        double a = 1;
        int i;
        double sum=10;
        for (i = 1; ; i++) {
            a =  a*0.8;
            sum=sum+10*a;
            if (20 * a <= 0.1) {
                break;
            }
        }
        System.out.println("碰撞"+i+"次后弹起高度小于0.1米");
        System.out.println("小球运动的轨迹为"+sum+"米");
    }
}
